package com.serialcommunication.model;

import org.apache.soap.encoding.Hex;

import com.serialcommunication.interfaces.IAction;

/**
 * Command is either 0 or 1 (1-Bit-commands)
 * @author Alex
 *
 */
public class BinaryAction implements IAction {
	
	private String name;
	private String title;
	private String command;
	private int bitNumber;
	
	
	public BinaryAction(String pName, String pTitle, String pCommand, int pBitNumber) {
		name = pName;
		title = pTitle;
		command = pCommand;
		bitNumber = pBitNumber;
	}
	
	public int getBitNumber() {
		return bitNumber;
	}
	
	public void setBitNumber(int bitNumber) {
		this.bitNumber = bitNumber;
	}
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public int getBitNumberOrNumberOfUsedBits() {
		// TODO Auto-generated method stub
		return bitNumber;
	}

}
